package com.zyg.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zyg.mapper.HouseMapper;
import com.zyg.pojo.House;

@Service
public class HouseServiceImpl implements HouseService{

	@Autowired
	private HouseMapper houseMapper;
	@Override
	public List<House> findHouse(){
		List<House>list = houseMapper.findAllHouse();
		return list;
	}


	@Override
	public House findHouseById(int id) {
		House house = houseMapper.findHouseById(id);
		return house;
	}

	@Override
	public void updateHouse(House house) {
		houseMapper.updateHouse(house);
	}

	@Override
	public void delHouse(int id) {
		houseMapper.delHouse(id);
	}
	@Override
	public void insertHouse(House house) {
		houseMapper.insertHouse(house);
	}


}
